package com.mtsmda.test;

public class TypesJava {

	public static void main(String[] args) {
tq();
	}

	// private static void tq(){}

	private static void tq() {
//		new TypesJava().invade(7); // The method invade(short) in the type TypesJava is not applicable for the arguments (int)
		System.out.println(new TypesJava().invade((short)7));
		System.out.println(new TypesJava().invade());
		System.out.println(new TypesJava().invade(new Short((short) 9)));
	}

	String invade(short ships) {
		return "a few";
	}
	
	String invade(Short ships) {
		return "a few Short";
	}

	String invade(short... ships) {
		return "many";
	}

}